<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div>
 <a href="index.jsp"><img src="images/banner.png" alt="Second Home Inc."></a>
</div>
<nav>
  <ul>
    <li><a href="index.jsp">Home</a>
      <ul>
        <li><a href="about.jsp">About</a></li>
        <li><a href="contact.jsp">Contact Us</a></li>
      </ul></li>
    <li><a href="#">Reservation Management</a>
      <ul>
        <li><a href="controller?&source=createRes">Create Reservation</a></li>
        <li><a href="controller?&source=viewRes">View Reservations</a></li>
      </ul></li>
    <li><a href="controller?&source=acctManagement">Account Management</a></li>
   	<%
      if ( request.getSession().getAttribute("user") == null )
        out.write("        <li><a href=\"register.jsp\">Register</a></li>");
      else
        out.write("        <li><a href=\"controller?&source=logout\">Logout</a></li>");
    %>
  </ul>
</nav>